/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mvp.levelup.files;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 *
 * @author WORKSPOT2
 */
public class Main
{

    public static void main(String[] args)
    {
        //Запись в файл
        List<String> toWrite = new ArrayList<String>();
        toWrite.add("1 string");
        toWrite.add("2 string");
        toWrite.add("3 string");
        toWrite.add("4 string");
        toWrite.add("5 string");
        boolean f = FileMaster.writeToFile(toWrite, "D:\\write_test.txt");
        System.out.println("Res: " + f);
        //Чтение из файла
        List<String> fromFile = FileMaster.getFileContent("D:\\write_test.txt");
        Iterator<String> iter = fromFile.iterator();
        while (iter.hasNext())
        {
            System.out.println(iter.next());
        }
    }
}
